%% Author: lzz
%% Created: 2011.02.24
%% Description: 封神台
-module(data_fst).

%%
%% Include files
%%


%%
%% Exported Functions
%%
-compile(export_all).

%% API Functions
%%
%%	get_fst(Thrued_loc)
%% 获取传送相关数据 Thrued_loc:通过的层数

%%封神台奖励时间数值[经验，灵力，荣誉，每层限定时间（分）]
get_fst(Thrued_loc) ->
	case Thrued_loc of
		1 -> [1826, 2435, 5, 5];
		2 -> [3114, 4152, 5, 5];
		3 -> [4255, 5673, 5, 8];
%% 		3 -> [4255, 5673, 5, 300];		%%测试设置
		4 -> [5309, 7079, 6, 5];
		5 -> [6305, 8407, 6, 8];
		6 -> [7256, 9674, 6, 10];
		7 -> [8170, 10893, 7, 5];
		8 -> [9054, 12072, 7, 8];
		9 -> [9914, 13218, 7, 10];
		10 -> [10752, 14336, 8, 5];
		11 -> [11570, 15427, 8, 8];
		12 -> [12372, 16496, 8, 10];
		13 -> [13159, 17545, 9, 5];
		14 -> [13931, 18575, 9, 8];
		15 -> [14692, 19589, 9, 12];
		16 -> [15440, 20587, 10, 8];
		17 -> [16178, 21570, 10, 10];
		18 -> [16906, 22541, 10, 12];
		19 -> [17624, 23499, 11, 5];
		20 -> [18335, 24446, 11, 8];
		21 -> [19037, 25382, 11, 12];
		22 -> [19730, 26307, 12, 8];
		23 -> [20418, 27224, 12, 10];
		24 -> [21098, 28130, 12, 14];
		25 -> [21772, 29029, 13, 8];
		26 -> [22439, 29919, 13, 10];
		27 -> [23101, 30801, 13, 14];
		28 -> [23757, 31676, 14, 8];
		29 -> [24407, 32543, 14, 10];
		30 -> [25053, 33404, 14, 14];
		31 -> [25694, 34258, 15, 8];
		32 -> [26330, 35106, 15, 10];
		33 -> [26961, 35948, 15, 16];
		34 -> [27587, 36783, 16, 8];
		35 -> [28211, 37614, 16, 10];
		36 -> [28829, 38439, 16, 16];
		37 -> [29444, 39258, 17, 8];
		38 -> [30055, 40073, 17, 13];
		39 -> [30662, 40882, 17, 16];
		40 -> [31265, 41687, 18, 8];
		41 -> [31865, 42487, 18, 13];
		42 -> [32462, 43283, 18, 18];
		43 -> [33056, 44074, 19, 10];
		44 -> [33646, 44861, 19, 13];
		45 -> [34233, 45644, 19, 18];
		Other ->
			%%46~75对应着诛仙台的1~30层
			case Other>=46 andalso Other=<75 of
				true->
					get_zxt_award(Other-45);
				false->
					[0,0,0,0]
			end
				
	end.

%%诛仙台奖励，时间数值[经验，灵力，荣誉，每天限定时间（分）]
get_zxt_award(Loc)->
	case Loc of
		1 -> [1826, 2435, 5, 5];
		2 -> [3114, 4152, 5, 5];
		3 -> [4255, 5673, 5, 8];
		4 -> [5309, 7079, 6, 5];
		5 -> [6305, 8407, 6, 8];
		6 -> [7256, 9674, 6, 10];
		7 -> [8170, 10893, 7, 5];
		8 -> [9054, 12072, 7, 8];
		9 -> [9914, 13218, 7, 10];
		10 -> [10752, 14336, 8, 5];
		11 -> [11570, 15427, 8, 8];
		12 -> [12372, 16496, 8, 10];
		13 -> [13159, 17545, 9, 5];
		14 -> [13931, 18575, 9, 8];
		15 -> [14692, 19589, 9, 12];
		16 -> [15440, 20587, 10, 8];
		17 -> [16178, 21570, 10, 10];
		18 -> [16906, 22541, 10, 12];
		19 -> [17624, 23499, 11, 5];
		20 -> [18335, 24446, 11, 8];
		21 -> [19037, 25382, 11, 12];
		22 -> [19730, 26307, 12, 8];
		23 -> [20418, 27224, 12, 10];
		24 -> [21098, 28130, 12, 14];
		25 -> [21772, 29029, 13, 8];
		26 -> [22439, 29919, 13, 10];
		27 -> [23101, 30801, 13, 14];
		28 -> [23757, 31676, 14, 8];
		29 -> [24407, 32543, 14, 10];
		30 -> [25053, 33404, 14, 14]
	end.

get_suit_light(SuitId, Stren) ->
	Light =
		case SuitId of
			0->0;
			1->10;
			2->20;
			3->30;
			4->10;
			5->20;
			6->30;
			7->10;
			8->20;
			9->30;
			10->10;
			11->20;
			12->30;
			13->10;
			14->20;
			15->30;
			16->20;
			17->30;
			18->20;
			19->30;
			20->20;
			21->30;
			22->20;
			23->30;
			24->20;
			25->30;
			26->40;
			27->40;
			28->40;
			29->40;
			30->40;
			31->40;
			32->40;
			33->40;
			34->40;
			35->40;
			46->50;
			47->50;
			48->50;
			49->50;
			50->50;
			_ -> 0
		end,
	case Stren of
		7 -> Light + 1;
		8 -> Light + 1;
		9 -> Light + 1;
		10 -> Light + 2;
		11 -> Light + 2;
		12 -> Light + 2;
		_ -> Light
	end.
